﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
	<xs:element name="System">
		<xs:complexType>
			<xs:sequence>
				<xs:element name="Build">
					<xs:complexType>
						<xs:attribute name="Number" type="xs:string" use="required"/>
					</xs:complexType>
				</xs:element>
				<xs:element name="Databases">
					<xs:complexType>
						<xs:sequence>
							<xs:element maxOccurs="unbounded" name="Database">
								<xs:complexType>
									<xs:sequence>
										<xs:element minOccurs="0" name="FileLayout">
											<xs:complexType>
												<xs:attribute name="ConfigurationFileName" type="xs:string" use="required"/>
											</xs:complexType>
										</xs:element>
										<xs:element name="ObjectDataCreationScript">
											<xs:complexType>
												<xs:attribute name="ConfigurationFileName" type="xs:string" use="required"/>
											</xs:complexType>
										</xs:element>
										<xs:element minOccurs="0" name="FullBuildObjectCreation">
											<xs:complexType>
												<xs:attribute name="ConfigurationFileName" type="xs:string" use="required"/>
											</xs:complexType>
										</xs:element>
										<xs:element minOccurs="0" name="RolesAndObjectLevelPermissions">
											<xs:complexType>
												<xs:attribute name="ConfigurationFileName" type="xs:string" use="required"/>
											</xs:complexType>
										</xs:element>
										<xs:element minOccurs="0" name="StaticData" type="xs:string" use="required">
											<xs:complexType>
												<xs:attribute name="ConfigurationFileName" type="xs:string" use="required"/>
											</xs:complexType>
										</xs:element>
									</xs:sequence>
									<xs:attribute name="Name" type="xs:string" use="required"/>
								</xs:complexType>
							</xs:element>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
				<xs:element name="Security" minOccurs="0">
					<xs:complexType>
						<xs:sequence>
							<xs:element name="LoginsAndUsers">
								<xs:complexType>
									<xs:attribute name="ConfigurationFileName" type="xs:string" use="required"/>
								</xs:complexType>
							</xs:element>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
				<xs:element name="SchemaChangeLog">
					<xs:complexType>
						<xs:attribute name="FileName" type="xs:string" use="required"/>
					</xs:complexType>
				</xs:element>
			</xs:sequence>
			<xs:attribute name="Name" type="xs:string" use="required" />
		</xs:complexType>
	</xs:element>
</xs:schema>